/*
 * Copyright (c) 2019-2020, GuYuLong and/or its affiliates. All rights reserved.
 * GuYuLong PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package cn.hxh.files.utils;

/**
 * @author GuYuLong
 * @date 2020/10/3
 * @since
 */
public final class TimeUtil {
    private static Long start;
    private static Long end;

    private TimeUtil(){

    }

    public static Long getStart() {
        start = System.currentTimeMillis();
        return start;
    }

    public static Long getEnd() {
        end = System.currentTimeMillis();
        return end;
    }

    public static Long getResult() {
        if (end == null) {
            end = System.currentTimeMillis();
        }
        return end - start;
    }
}
